package com.example.service;

import com.example.entity.Student;
import com.example.entity.Students;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ws.rs.Consumes;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 卓小建
 * Date: 2018-12-18
 * Time: 11:31
 */
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})//返回类型
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})//请求类型
@WebService
public interface StudentService {
    @WebMethod
    Student getStudent(@WebParam(name="id") Integer id);
    @WebMethod
    Students getAllStudent(@WebParam(name="ids")  String ids);
}
